import request from "@/utils/request";

// 查询治疗列表
export function getTreatmentList(query) {
  return request({
    url: "/system/treatment/list",
    method: "get",
    params: query
  });
}
// 获取治疗详细信息
export function getTreatmentDetail(id) {
  return request({
    url: "/system/treatment/"+id,
    method: "get",
  });
}
// 删除治疗
export function deleteTreatment(id) {
  return request({
    url: "/system/treatment/"+id,
    method: "delete",
  });
}
// 查询顾客列表(治疗中)
export function getListForTreatment(query) {
  return request({
    url: "/system/doctor/listForTreatment",
    method: "get",
    params: query
  });
}
//查询顾客列表(治疗中,治疗结束)
export function getTreatmentBy(visitNum) {
  return request({
    url: "/system/doctor/treatmentBy/"+visitNum,
    method: "get",
  });
}
//查询该就诊编号下医生方案中治疗类的方案信息(治疗中)
export function findSysVisitPlans(visitNum) {
  return request({
    url: "/system/doctor/sysVisitPlans/"+visitNum,
    method: "get",
  });
}

// 查询治疗医生列表
export function getTreatmentDoctorUsers() {
  return request({
    url: "/system/user/get/TreatmentDoctorUsers",
    method: "get",
  });
}

// 新增方案
export function addTreatment(data) {
  return request({
    url: "/system/treatment",
    method: "post",
    data: data,
  });
}
// 修改方案
export function updateTreatment(data) {
  return request({
    url: "/system/treatment",
    method: "put",
    data: data,
  });
}
// 上传凭证和知情同意书
export function consentUploads(Mdata) {
  return request({
    url: "/system/consent/uploads/"+Mdata.visitNum+"/"+Mdata.type,
    method: "post",
    data: Mdata.data,
    timeout: 300000,
  });
}
// 获取缴费凭证和知情同意书角标
export function consentNum(visitNum,type) {
  return request({
    url: "/system/consent/"+visitNum+"/"+type,
    method: "get",
  });
}
// 获取缴费凭证和知情同意书
export function consentList(visitNum,type) {
  return request({
    url: "/system/consent/get/"+visitNum+"/"+type,
    method: "get",
  });
}

// 获取全部知情同意书
export function consentListAll(query) {
  return request({
    url: "/system/consent/list",
    method: "get",
    params: query
  });
}
//system/treatment/list/all查询治疗列表(不分页)

export function treatmentListAll(query) {
  return request({
    url: "/system/treatment/list/all",
    method: "get",
    params: query
  });
}



